package com.parktech.sun.domain.model.sunhz;

import com.parktech.sun.domain.model.BaseEntity;

import javax.persistence.*;

/**
 * User: Think
 * Date: 11-1-15
 * Time: 下午3:01
 */
@Entity
public class EnterpriseCategoryProduct extends BaseEntity {

    private String name;

    private int orderCode = -1;

    private Long category;

    public EnterpriseCategoryProduct() {
    }

    public EnterpriseCategoryProduct(Long id) {
        super(id);
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(int orderCode) {
        this.orderCode = orderCode;
    }

    public Long getCategory() {
        return category;
    }

    public void setCategory(Long category) {
        this.category = category;
    }
/*
    @ManyToOne
    public EnterpriseCategory getCategory() {
        return category;
    }

    public void setCategory(EnterpriseCategory category) {
        this.category = category;
    }
*/
}
